package com.alex.common.exception;

import com.alex.common.ILogger;
import com.alex.common.filter.EnvironmentFilter;

public class AlexCommException extends RuntimeException {

	private static final long serialVersionUID = 7858261547194681543L;

	public AlexCommException(Throwable t) {
		this(t.getMessage(), t);
	}

	public AlexCommException(String msg, Throwable t) {
		super(msg, t);
		ILogger.logger_common.error(msg, t);
		if (EnvironmentFilter.isTest) {
			System.out.println("********" + msg + "********");
			t.printStackTrace();
		}
	}

}
